/**
 * SchoolTest Class
 * A Driver class for testing School and related classes
 *
 *  @author John Thomason
 *  Date: Fall 2008
 *  Course: CS222
 *  Seminar: 6
 *  Assign: Final Exam Part B
 *
 */
public class SchoolTest {

//INSTANCE VARIABLES

    private School  school         = new School();
    private Teacher mathTeacher    = new Teacher("Neal Peart", 55,
                                                 School.Degree.PHD,
                                                 School.Subject.MAT,
                                                 80000,40);
    private Teacher englishTeacher = new Teacher("Crisy Hine",53,
                                                 School.Degree.MS,
                                                 School.Subject.ENG,
                                                 59000,40);
    private Student student1       = new Student("Bob Marley",19,
                                                 School.Degree.BS);
    private Student student2       = new Student("Jimi Hendrix",20,
                                                 School.Degree.AAS);

    /**
     * Application entry point
     * @param args  Command line argument list
     */
    public static void main (String[] args) {

        //Create a test environment
        SchoolTest st = new SchoolTest();

        //Hire a couple of teachers
        st.school.hireTeacher(st.mathTeacher);
        st.school.hireTeacher(st.englishTeacher);

        //Send a couple of students to school
        st.school.goToSchool(st.student1);
        st.school.goToSchool(st.student2);

        //Test the student learn() methods
        prt(st.student1.learn(School.Subject.CS));
        prt(st.student2.learn(School.Subject.MAT, 85.41));

        //Test the teacher teach() methods
        prt(st.mathTeacher.teach());
        prt(st.englishTeacher.teach());

        //Display All Teacher and Student information
        prt(st.school + "\n");

    }//main() method
    
    public static void prt(String msg){
        System.out.print(msg);
    }

}//SchoolTest Class

